﻿<%@ Page Title="Purchase History" Theme="POSSystem" Language="C#" MasterPageFile="~/EditPages/Popup.Master"
    AutoEventWireup="true" CodeBehind="PurchaseHistViewer.aspx.cs" Inherits="WebUI.EditPages.PurchaseHistViewer" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Src="~/Controls/POSControls/PurchaseHistoryListCtrl.ascx" TagName="PurchaseHistoryListCtrl"
    TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PopupHeadHolder" runat="server">
    <script type="text/javascript">
        function printClose() {
            //            document.getElementById('divToolBar').style.display = 'none';
            //            document.getElementById('divStatusBar').style.display = 'none';
            window.print();
            //window.close();
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PopupToolbarHolder" runat="server">
    <table class="popuptoolbar" width="100%">
        <tr>
            <td style="vertical-align: middle; text-align: left">
                <asp:Panel ID="panel" runat="server" DefaultButton="btnSearch" >
                <asp:LinkButton class="tbbutton" ID="btnPrint" runat="server" OnClientClick="return fprint();">
                    <img src="../Images/print.gif" /><asp:Label ID="label1" runat="server" Text="Print"></asp:Label>
                </asp:LinkButton>
                <img src="../Images/tbSep.png" />
                
                <asp:Label ID="lblDateFrom" runat="server" Text="From"></asp:Label>
                <asp:TextBox ID="txtDateFrom" runat="server"></asp:TextBox>
                <cc1:CalendarExtender ID="cldExFromCreatedDate" Format="dd MMM yyyy"  runat="server" TargetControlID="txtDateFrom" >
                                </cc1:CalendarExtender>

                <asp:Label ID="lblDateTo" runat="server" Text="To"></asp:Label>
                
                <asp:TextBox ID="txtDateTo" runat="server"></asp:TextBox>
                <cc1:CalendarExtender ID="cldExToCreatedDate" Format="dd MMM yyyy"  runat="server" TargetControlID="txtDateTo">
                                </cc1:CalendarExtender>

                <asp:LinkButton class="tbbutton" ID="btnSearch" runat="server" OnClick="btnSearch_OnClick">
                    <img src="../Images/search.png" /><asp:Label ID="label2" runat="server" Text="Search"></asp:Label>
                </asp:LinkButton>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PopupContentHolder" runat="server">
    <uc:PurchaseHistoryListCtrl ID="purchaseHistoryList" runat="server" AllowPaging="true"
        AllowSelecting="false" AllowSorting="true" PageSize="10" CssClass="" GridBorder="Solid"
        GridBorderColor="Black" GridLineStyle="Both" Width="100%" />
</asp:Content>
